package ex75;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws IOException {
		
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		
		int x = Integer.parseInt(in.readLine());
		
		for (int i = 2; i < 10000; i++) {
			if (i % x == 2) {
				System.out.println(i);
			}
		}
	}

}
